package com.caigou.mapper.cms;


import com.caigou.bean.cms.entity.GovProListIntroItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GovProListIntroItemMapper {
    GovProListIntroItem selectByPrimaryKey(Integer id);
    int deleteByPrimaryKey(Integer id);
    List<GovProListIntroItem> listIntroItemByIntroGroupId(Integer introGroupId);
    int insertSelective(GovProListIntroItem item);
    int updateIntroItem(GovProListIntroItem Item);
    Integer selectMaxRank();
    int updateRankForDelete(@Param("introGroupId") Integer introGroupId, @Param("rank") Integer rank);

    int getItemCountByGroupId(@Param("introGroupId") Integer introGroupId);
    int deleteItemByGroupId(@Param("introGroupId") Integer introGroupId);

    int incrementRankByIntroGroupIdAndRank(GovProListIntroItem item);
}
